home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
kcl
/
akcl
/
akcl1615.lha
/
xbin
/
diff-tar
< prev
next >
Wrap
Text File
|
1989-10-07
|
469b
|
22 lines
#!/bin/sh
TMP=${HOME}/tmp
cd ${TMP}
if [ "$#" != "3" ] ;then echo usage: diff-tar old-tar new-tar output-tar ; fi
rm -rf akcl1 akcl2 tmpx
mkdir akcl1
mkdir akcl2
cd akcl1
uncompress -c $1 | tar xf -
cd ../akcl2
uncompress -c $2 | tar xf -
for v in * */* V/*/* ; do
if [ -f $v ] ; then
if cmp $v ../akcl1/$v ; then true
else echo $v >> ../tmpx
fi
fi
done
# tar cvf - `cat ../tmpx` | compress -c > $3
tar cvf - `cat ../tmpx | sed -e "/doc/d" ` | compress -c > $3